<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('site/tpl/profile_home|site/tpl/header|site/tpl/space_comment_li|site/tpl/footer', '1262572185', 'site/tpl/profile_home');?><?php $_TPL['titles'] = array($mtag['tagname'], $mtag['title'], $li_chn_name); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?=$_SCONFIG['sitename']?></title>

<script language="javascript" type="text/javascript" src="public/js/jquery.1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="public/js/effects.core.js"></script>
<script language="javascript" type="text/javascript" src="public/js/jquery.suggest15215.js"></script>
<script language="javascript" type="text/javascript" src="public/js/wtming21867.js"></script>
<script language="javascript" type="text/javascript" src="public/js/DragResize.js"></script>


<link rel="stylesheet" href="public/css/fancybox.css" type="text/css" media="screen">

<link type="text/css" rel="stylesheet" href="public/css/w-style.css"></link>
<link type="text/css" rel="stylesheet" href="public/css/style.css"></link>
<link type="text/css" rel="stylesheet" href="public/css/base-min.css"/>
<link rel="shortcut icon" href="public/images/favicon.ico" />

<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$_SGLOBAL['supe_uid']?>" />
</head>
<body class="graybody">

<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div class="bigwapper">        
<div class="header">
  <div class="logo">
    <a href="index.php"><img src="public/img/index-4.gif" alt="<?=$_SCONFIG['sitename']?>"/></a>
  </div>

   <div class="nav">
   <div class="div">
<ul>
   		<?php if($_SGLOBAL['supe_uid']) { ?>
 <li ><a href="cp.php?ac=common&op=logout">退出</a></li>
  <li><a href="space.php?do=pm<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>&filter=newpm<?php } ?>">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>	 
  <li><a href="space.php?do=friend">好友</a></li>
  <li ><a href="space.php?do=home">个人首页</a></li>
 <li class="first"><a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?><a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['supe_username']?></a><?php } ?></li>
<?php } else { ?>

<li ><a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a></li>
            <li class="first"><span style="color:#F15525;">欢迎您</span>&nbsp;&nbsp;<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a></li>
<?php } ?>
            </div>
      </div>


      <div class="search">
        <form action="site.php?ac=profile&op=search" method="get">
<span class="blue_window">	<input type="text" id="page_focus" class="h_input" size="30" value="" name="key" /> </span>
<input type="hidden" name="ac" value="profile" />
<input type="hidden" name="op" value="search" />
<input type="hidden" name="searchmode" value="1" />
<input type="hidden" value="true" name="searchsubmit" />
            <button type="submit"><span class="blind">搜索</span></button>
</form>
  </div>

<style>
#nav {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/navbg.gif) repeat-x scroll 0 0;
height:42px;
margin:0 auto;
width:970px;
font-size:14px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:bold;
}
#nav span {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll 0 0;
display:block;
float:left;
height:42px;
width:8px;
}
#nav li {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/navbg1.gif) no-repeat scroll right 50%;
padding:0 5px;
position:relative;
}
#nav ul, #nav li {
color:#FFFFFF;
float:left;
height:42px;
line-height:42px;
}

#nav li a:hover, #nav li a.current {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll 0 -86px;
color:#000000;
text-decoration:none;
}
#nav li a {
font-size:16px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:bold;
color:#FFFFFF;
display:block;
line-height:50px;
text-align:center;
text-decoration:none;
width:94px;
}
#nav span.r {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(public/images/bg.gif) no-repeat scroll -10px 0;
float:right;
}
#nav li.noborder {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent none repeat scroll 0 0;
}

</style>
<div class="clearfix" id="nav">
  <span> </span>
    <ul>
     
      <li >
      <a href="index.php" <?php if($li_name=='index') { ?>class="current"<?php } ?>>首页</a></li>
      <li ><a href="site.php?ac=show&fid=4" <?php if($li_name=='star') { ?> class="current"<?php } ?>>明星</a></li>
      <li ><a href="site.php?ac=show&fid=67" <?php if($li_name=='product') { ?> class="current"<?php } ?>>时尚品</a></li>
      <li ><a href="site.php?ac=show&fid=66" <?php if($li_name=='brand') { ?>class="current"<?php } ?>>品牌</a></li>
      <li class="noborder"><a href="site.php?ac=hot" <?php if($li_name=='hot') { ?>  class="current"<?php } ?>>正流行</a></li>

    </ul>
    <span class="r"> </span>
</div>
  
  </div>

<div class="wapper main clearfix">

  

<?php } ?>



 <h1 class="clearfix line"><a href="site.php?ac=show&fid=<?=$mtag['fieldid']?>" class="h1brand"><span><?=$nav_name?></span></a>
<?=$mtag['tagname']?></h1>

<script type="text/javascript">
  j$ = jQuery.noConflict();  	
  var tick = 0;
  var pick = 0;
  function update_announce() {
    if (!tick) {
      j$('#announce_form').show();
      tick = 1;
    } else {
      tick = 0;
      j$('#announce_form').hide();
    }
  }
function update_pic() {
    if (!pick) {
      j$('#pic_form').show();
      pick = 1;
    } else {
      pick = 0;
      j$('#pic_form').hide();
    }
}

  /*
  j$(function() {
 j$('.singlepro').mouseover(function(){
     j$(this).addClass('proover');
     j$('.salescount').addClass('hidden');
}).mouseout(function(){
j$(this).removeClass("proover");
      j$('.salescount').removeClass('hidden');
}); 
}); 
   */
  j$(function(){
    j$('.singlepro').mouseover(function(){
     //j$(this).addClass('proover');
      j$('img.sp_avatar').hide();
      j$('img.pp_avatar').show();
}).mouseout(function(){
//j$(this).removeClass("proover");
      j$('img.sp_avatar').show();
      j$('img.pp_avatar').hide();
});      
  });
</script>
    <div class="left_w">        
<div class="block block_shopinfo">
<div class="content">
<div class="info clearfix">
                        <div class="info1">
                            <div class="simage">
                                <div class="block_img block_img77">
                                        <div class="image_box"><div id="space_avatar"><img width="160" alt="<?=$mtag['tagname']?>" src="<?=$mtag['pic']?>"/></div></div>
                                </div>
            <?php if(intval($mtag['moderator'])==$_SGLOBAL['supe_uid']) { ?>                                                              
<a style="display:block; margin: 10px 0;" href="javascript:;" onclick="update_pic();">编辑档案图片</a>
      <?php } ?>
<div id="pic_form" style="display:none;text-align:left;">
<script src="public/js/ajaxupload.3.1.js" type="text/javascript"></script>
  <form id="pic_form" name="pic_form" action="site.php?ac=profile&op=editpic&profid=<?=$profid?>" method="post" class="j a_updone_form">
<div id="warning_t" class="example">
<p class="text"></p>
</div>
<input type="input" name="picfile" style="width: 105px;" id="picfile" class="t_input"/>
  <a id="browse_pic">选择照片</a>		
<br><input type="submit" name="editpicsubmit" class="submit" value="更新">
<input type="hidden" name="refer" value="site.php?ac=profile&profid=<?=$profid?>">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form>
  </div>
</div>

 
                        </div>
            <div class="info2">
                     <dl class="surl">
              
                        <dd><div class="brandshortintro"><div id="article"><p><?php if($mtag['announcement']) { ?><?=$mtag['announcement']?><?php } else { ?>还没有描述<?php } ?>        
<?php if(intval($mtag['moderator'])==$_SGLOBAL['supe_uid']) { ?></p></div>
<a href="javascript:;" onclick="update_announce();">更新描述</a><?php } ?>
</div>

<div class="brandintro hide" id="announce_form" style="display:none;text-align:left;">	
<form id="announce_form" name="announce_form" action="site.php?ac=profile&op=editannounce&profid=<?=$profid?>" method="post" class="j a_update_announce">
<textarea name="announcement" cols="70" rows="3" style="width: 380px"><?=$mtag['announce_bbcode']?></textarea>
<br><input type="submit" name="editannouncesubmit" class="submit" value="更新">
<input type="hidden" name="refer" value="site.php?ac=profile&profid=<?=$profid?>">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form>
</div></dd>
                    </dl>
                                        
            </div>
            </div>
            </div>
            </div>
          

<div id="getfeed">
</div>
 
 <div class="block block_product">
                <h2 >	<?=$mtag['tagname']?>的时尚发现</h2>

             
<div id="showgoods" class="content">
<div class="block_product">
    <ul class="clearfix">
                <?php if(is_array($spotlist)) { foreach($spotlist as $subvalue) { ?>
            <li class="singlepro">
<div class="img">
        <a title="<?=$subvalue['spotnote']?>" href="site.php?ac=image&type=spot&amp;id=<?=$subvalue['spotid']?>">
          <?php if($subvalue['tag1'] == $profid) { ?>
          <img class="sp_avatar" alt="<?=$subvalue['tagname']?>" src="<?=$subvalue['p2pic']?>" width=160 height=160 />
          <?php } else { ?>
          <img class="sp_avatar" alt="<?=$subvalue['tagname']?>" src="<?=$subvalue['p1pic']?>" width=160 height=160 />
          <?php } ?>
          <img class="pp_avatar" style="display:none;" alt="<?=$subvalue['tagname']?>" src="<?=$subvalue['pic']?>" width=160 height=160 /></a>
  </div>
        <div class="salescount"> <a title="<?=$subvalue['spotnote']?>" href="site.php?ac=image&type=spot&amp;id=<?=$subvalue['spotid']?>"><span class="name_text"><?=$subvalue['tagname']?></span></a></div>
                <div class="addcollect">
                    <div class="hide">
<a  href="site.php?ac=profile&profid=<?=$subvalue['tag1']?>" alt="<?=$subvalue['p1name']?>"><img alt="<?=$subvalue['p1name']?>" src="<?=$subvalue['p1pic']?>" width=75 height=50 style="margin:5px 5px 0 0;"></a>

<a  href="site.php?ac=profile&profid=<?=$subvalue['tag2']?>" alt="<?=$subvalue['p2name']?>"><img alt="<?=$subvalue['p2name']?>" src="<?=$subvalue['p2pic']?>" width=75 height=50 style="margin:5px 0 0 5px;"></a>
                    </div>
                </div>
</li>
      <?php } } ?>      

                                                                              </ul>
    <div class="more"><a class="btn_create" href="site.php?ac=profile&op=spot&profid=<?=$profid?>">>更多时尚发现</a></div>
</div>
   
</div>
 </div>          
   
      

<div id="album_review" class="block block_album">
<a href="site.php?ac=image&type=profile&id=<?=$profid?>&op=list" class="fr">>更多</a>
            <h2><?=$mtag['tagname']?>的图片<em>(<?=$piccount?>)</em>

</h2>
            <div class="content clearfix">
<?php if(is_array($plist)) { foreach($plist as $key => $value) { ?>          
<dl>
    <dt>
<div class="wrap1">
<div class="wrap2">
<div class="wrap3">
<a href="site.php?ac=image&type=profile&id=<?=$profid?>&picid=<?=$value['picid']?>" title="<?=$value['title']?>" class="dropshadow">
<img src="<?=$value['pic']?>"/></a></div>
</div>
</div>
</dt>
    <dd>
    
        <div class="bar"><span class="time"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?></span></div>
    </dd>
</dl>      
<?php } } ?>           
<dl class="clear"/>                            </div>
            
        </div>

        <h2><?=$mtag['tagname']?>的话题讨论</h2>

 

<?php if(!$_SGLOBAL['supe_uid']) { ?>
     <div style="margin: 10px 0pt; padding: 20px; background: rgb(236, 228, 210) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
            发表对它的感触？请先<a href="" class="j a_show_login innerlink">登录</a>或<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="innerlink">注册</a><span style="color: rgb(153, 153, 153);">(不超过24秒)</span>
        </div>
<?php } else { ?>
 <div id="commentlist" class="block_reviewreply">
<?php if($cid) { ?>
<div class="notice">
当前只显示与你操作相关的单个评论，<a href="site.php?ac=profile&op=index&profid=<?=$profid?>#comment">点击此处查看全部评论</a>
</div>
<?php } ?>			
<ul id="comment_ul">
<?php if(is_array($list)) { foreach($list as $value) { ?>
<?php if(empty($ajax_edit)) { ?><li id="comment_<?=$value['cid']?>_li" class="clearfix"><?php } ?>

    <div class="user">
        <div class="image_box"><a href="space.php?uid=<?=$value['authorid']?>"><img width="60" alt="<?=$_SN[$value['authorid']]?>" src="<?php echo avatar($value[authorid],small); ?>"/></a></div>
    </div>
    <div class="content"> 
      <div class="r_option">
<?php if($value['authorid']==$_SGLOBAL['supe_uid']) { ?>
      <a href="" name="site.php?ac=comment&op=edit&cid=<?=$value['cid']?>" class="j a_modify_reply"  id="c_<?=$value['cid']?>_edit">编辑</a>
      <a href="" class="j a_umodify_reply"  id="c_<?=$value['cid']?>_unedit" style="display:none;">取消编辑</a>
<?php } ?>
<?php if($value['authorid']==$_SGLOBAL['supe_uid'] || $value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="" rel="nofollow" class="j a_del_reply" title="确定否？" name="site.php?ac=ajax&op=delreply&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_delete" >删除</a>
<?php } ?>
  </div> 

      <div class="time"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?>
        <a href="space.php?uid=<?=$value['authorid']?>"><?=$_SN[$value['authorid']]?></a>
 </div>
<div id="comment_div_<?=$value['cid']?>"><?=$value['message']?></div>
    <div style="display: none; text-align: left;" id="modify_reply_<?=$value['cid']?>" class="brandintro hide"> 
     <form id="edit_commentform_<?=$value['cid']?>" class="j a_update_reply" name="edit_commentform_<?=$value['cid']?>" method="post" action="site.php?ac=comment&op=edit&cid=<?=$value['cid']?>">
<table>
<tr>
<td>
      <textarea id="message_<?=$value['cid']?>" name="message" cols="70" rows="8"><?php echo html2bbcode($value[message]); ?></textarea></td>
</tr>
<tr>
<td>
<input type="hidden" name="editsubmit" value="true" />
<input type="submit" name="editsubmit_btn" id="editsubmit_btn" value="提交" class="submit" />
</td>
</tr>
</table>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form> 
</div>
    </div>
<?php if(empty($ajax_edit)) { ?></li><?php } ?>

<?php } } ?>
</ul>
</div>
<div class="page"><?=$multi?></div>
<form id="quickcommentform_<?=$profid?>" name="quickcommentform_<?=$profid?>" action="site.php?ac=comment" method="post" class="j a_add_reply quickpost" style="padding-bottom: 1em;">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<textarea id="comment_message" name="message" rows="5" cols="60" ></textarea>
</td>
</tr>
<tr>
<td>
<input type="hidden" name="id" value="<?=$profid?>">
<input type="hidden" name="idtype" value="profid">
<input type="hidden" name="commentsubmit" value="true">
<input type="submit" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="评论" />
<span id="comment_status"></span>
</td>
</tr>
</table>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form>
 <?php } ?>  
</div>
<div class="right_w">
      <div class="block block_connectuser">
  			<div style="float:right;" id="fan_area">
<?php if(empty($mtag['ismember']) ) { ?>
<a href="site.php?ac=ajax&op=dofan&sop=befan&profid=<?=$mtag['tagid']?>" class="j a_dofan">加我</a>
<?php } else { ?>
<a href="site.php?ac=ajax&op=dofan&sop=nofan&profid=<?=$mtag['tagid']?>" class="j a_dofan">退出</a>
<?php } ?>
</div>
            <h2>            
<!---{
<a href="site.php?ac=profile&amp;op=member&amp;profid=<?=$mtag['tagid']?>" class="fr">>全部 <?=$fancount?> 人</a>}-->
            <?=$mtag['tagname']?>的粉丝

</h2>
            <ul class="content clearfix">
                      
  <?php if(is_array($memberlist)) { foreach($memberlist as $key => $value) { ?>
  <li>
                    <div class="user">
                        <div class="block_img">
                        <div class="image_box"><a href="space.php?uid=space.php?uid=<?=$value['uid']?>"><img width="60" alt="<?=$_SN[$value['uid']]?>" src="<?php echo avatar($value[uid],small); ?>"/></a></div>
                        <div class="friend_text"><span class="name_text"><a href="space.php?uid=space.php?uid=<?=$value['uid']?>"><?=$_SN[$value['uid']]?></a></span></div>
                        </div>
                    </div>
                </li>                                                                   
<?php } } ?>
                      </ul>
            
        </div>
    </div>
  
  
     
        


<?php if(empty($_SGLOBAL['inajax'])) { ?>

</div>

<!--/mainarea-->


<!--/main-->
<?php } ?>

       <div class="footer" title="<?php echo debuginfo(); ?>">
            <div class="footermain">
            <div class="footer_inner">
                <div class="company_info">
                  <div class="other_link">
                      <a class="fr" style="margin-right:10px"  href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP"><img src="public/img/up.gif" /></a>
  <a href="" class="other_link01">沪ICP备09037050号</a>
                  </div>
                  <address class="address">
                    Copyright ©2009 wtming.com
                  </address>
                </div>
              </div>
            </div>
        </div>
<!--/wrap-->

<?php if(count($_SGLOBAL['debug_query'])) { ?>
<div>
<ul>
<?php if(is_array($_SGLOBAL['debug_query'])) { foreach($_SGLOBAL['debug_query'] as $k => $v) { ?>
<li><?=$k?> --> <?=$v['sql']?> </li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-112862-2");
pageTracker._trackPageview();
} catch(err) {}</script>


</div>
</body>
</html>

<?php ob_out();?>